﻿using System.Runtime.InteropServices;
using SpoolFileLibrary.Reader.Misc;

namespace SpoolFileLibrary.Reader.Shadow {
    [StructLayout(LayoutKind.Sequential)]
    internal struct HeaderRecord {
        public int dwHeaderSize;
        public int dwJobID;
        public int dwPageCount;
        public int dwPriority;
        public int dwSignature;
        public int dwSizeSecurityInfo;
        public int dwSizeSPL;
        public int dwSPLSize2;
        public int dwStartTime;
        public int dwUnknown2;
        public int dwUnknown3;
        public int dwUnknown4;
        public int dwUnknown5;
        public int dwUntilTime;
        public int offComputername;
        public int offDataFormat;
        public int offDevMode;
        public int offDocumentName;
        public int offDriverName;
        public int offNotifyName;
        public int offPort;
        public int offPrinterName;
        public int offPrintProcessor;
        public int offSecurityInfo;
        public int offUserName;
        public SYSTEMTIME stSubmitTime;
        public short wStatus;
        public short wUnknown1;
    }

    public enum ShadowSignature {
        SHD_SIGNATURE_WIN2000 = 0x4967,
        SHD_SIGNATURE_WIN2003 = 0x4968,
        SHD_SIGNATURE_WIN98 = 0x494b,
        SHD_SIGNATURE_WINNT = 0x4966
    }
}